package zh.javadesign.抽象工厂.impl01.impl;


import zh.javadesign.抽象工厂.impl01.CacheService2;
import zh.javadesign.抽象工厂.scene.matter.RedisUtils;

import java.util.concurrent.TimeUnit;

public class CacheServiceImpl implements CacheService2 {

	private RedisUtils redisUtils = new RedisUtils();

	@Override
	public String get(String key) {
		return redisUtils.get(key);
	}

	@Override
	public void set(String key, String value) {
		redisUtils.set(key, value);
	}

	@Override
	public void set(String key, String value, long timeout, TimeUnit timeUnit) {
		redisUtils.set(key, value, timeout, timeUnit);
	}

	@Override
	public void del(String key) {
		redisUtils.del(key);
	}

}
